﻿@{
    //导航样式
    string current = ViewBag.Current;    
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <title>@ViewBag.Title</title>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    @*<link rel="shortcut icon" href="http://demo.zuitu.com/static/icon/favicon.ico" />*@
    <link href="/Content/Admin/index.css" rel="stylesheet" type="text/css" />
    @*<script type="text/javascript">          var WEB_ROOT = '';</script>*@ @*<script src="http://demo.zuitu.com/static/js/index.js" type="text/javascript"></script>*@
    @*<script type="text/javascript" src="http://demo.zuitu.com/static/js/datepicker/WdatePicker.js"></script>*@
    @RenderSection("head", false)
</head>
<body class="newbie">
    <div id="pagemasker">
    </div>
    <div id="dialog">
    </div>
    <div id="doc">
        @*<script type="text/javascript" src="http://demo.zuitu.com/static/js/xheditor/xheditor.js"></script>*@
        <div id="hdw">
            <div id="hd">
                @*<!--<div id="logo"><a href="/index.php" class="link" target="_blank"><img src="http://demo.zuitu.com/static/css/i/logo.gif" /></a></div>-->
                <!--<div class="guides">
			<div class="city">
				<h2>管理后台</h2>
			</div>
			<div id="guides-city-change" class="change"></div>
		</div>-->*@
                @if (string.IsNullOrEmpty(current))
                {
                    try
                    {
                        current = Request.RequestContext.RouteData.Values["controller"].ToString().ToLower();
                    }
                    catch (Exception)
                    {
                    }
                    
                }
                <ul class="nav cf">
                <li @(current == "userinfo" ? MvcHtmlString.Create("class=\"current\"") : null)><a
                        href="@Url.Action("Index", "UserInfo")">用户</a></li>
                    <li @(current == "product" ? MvcHtmlString.Create("class=\"current\"") : null)><a
                        href="@Url.Action("Index", "Product")">产品</a></li>
                    <li @(current == "quote" ? MvcHtmlString.Create("class=\"current\"") : null)><a
                        href="@Url.Action("Index","Quote")">报价</a></li>
                    <li @(current == "salesman" ? MvcHtmlString.Create("class=\"current\"") : null)><a
                        href="@Url.Action("Index", "Salesman")">业务员</a></li>
                         <li><a href="/Home/Exit">退出</a></li>
                </ul>
                <!--<div class="vcoupon">&raquo;&nbsp;<a href="/manage/logout.php">管理员退出</a></div>-->
            </div>
        </div>
        @if (TempData["Tip"] != null)
        {
            @RenderPage("~/Areas/Example/Views/Shared/_TipUserControl.cshtml", TempData["Tip"])
        }  
@*<div class="sysmsgw" id="sysmsg-error"><div class="sysmsg"><p>用户名密码不匹配！</p><span class="close">关闭</span></div></div>
<div class="sysmsgw" id="sysmsg-success"><div class="sysmsg"><p>删除链接成功</p><span class="close">关闭</span></div></div>*@
        <div id="bdw" class="bdw">
            @RenderBody()
            <!-- bd end -->
        </div>
        <!-- bdw end -->
    </div>
</body>
</html>
